package com.example.demo.mapper;

import com.example.demo.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface BookMapper {
    List<Book> findAll();
    Book findById(Long id);
    int insert(Book book);
    int update(Book book);
    int deleteById(Long id);
    List<Book> findByTitleContaining(String title);
    Book findByIsbn(String isbn);
    List<Book> searchBooks(String keyword);
}